<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--360浏览器优先以webkit内核解析-->
    <title>个人信息</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.css}" rel="stylesheet"/>
    <link href="../static/css/main/animate.min.css" th:href="@{/css/main/animate.min.css}" rel="stylesheet"/>
    <link href="../static/css/main/style.min862f.css" th:href="@{/css/main/style.min862f.css}" rel="stylesheet"/>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row animated fadeInRight">
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>个人信息</h5>
                    <div class="ibox-tools">
                        
                        <a class="dropdown-toggle" data-toggle="dropdown" href="profile.html#">
                            <i class="fa fa-edit"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="javascript:edit()">修改信息</a></li>
                            <li><a href="javascript:resetPwd()">修改密码</a></li>
                            <li><a href="javascript:avatar()">修改头像</a></li>
                        </ul>
                       
                    </div>
                    </div>
                    <div class="contact-box">
	                        <div class="col-sm-4">
	                            <div class="text-center">
	                                <img th:src="@{/img/profile.jpg}" alt="image" class="img-circle m-t-xs img-responsive">
	                            </div>
	                        </div>
	                        <div class="col-sm-8">
	                            <h3><strong th:text="${user.username}"></strong></h3>
                                <p><i class="fa fa-user"></i>&nbsp<span th:text="${user.realName}"></span>/<span th:text="${user.roleList[0].roleDescription}"></span></p>
	                            <p><i class="fa fa-group"></i>&nbsp<span th:text="${user.dept.name}"></span></p>
	                            <p><i class="fa fa-transgender"></i>&nbsp性别:<span th:text="${user.sex}"></span></p>
	                            <p><i class="fa fa-envelope-o"></i>&nbsp<span th:text="${user.email}"></span></p>
	                            <p><i class="fa fa-calendar" ></i>&nbsp<span th:text="${#dates.format(user.createTime,'yyyy-MM-dd')}"></span></p>
	                        </div>
	                        <div class="clearfix"></div>
	                    </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>

    <!-- bootstrap-table 表格插件 -->
    <script th:src="@{/ajax/libs/bootstrap-table/bootstrap-table.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js}"></script>
    <!-- jquery-validate 表单验证插件 -->
    <script th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
    <script th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
    <script th:src="@{/ajax/libs/validate/jquery.validate.extend.js}"></script>
    <!-- jquery-validate 表单树插件 -->
    <script th:src="@{/ajax/libs/jqTreeGrid/jquery.treegrid.min.js}"></script>
    <script th:src="@{/ajax/libs/jqTreeGrid/jquery.treegrid.extension.js}"></script>
    <!-- jquery-export 表格导出插件 -->
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js}"></script>
    <script th:src="@{/ajax/libs/bootstrap-table/extensions/export/tableExport.js}"></script>
    <!-- 遮罩层 -->
    <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
    <script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
    <script th:src="@{/ajax/libs/layui/layui.js}"></script>
    <script th:src="@{/ruoyi/js/common.js?v=2.2.0}"></script>
    <script th:src="@{/ruoyi/js/yuyu-ui.min.js?v=2.2.0}"></script>
    <script src="http://tajs.qq.com/stats?sId=62048022"></script>
    <script th:inline="javascript"> var ctx = [[@{/}]]; </script>
    <script>
        // var userId = [[${user.userId}]];
	    /*用户信息-修改*/
	    function edit() {
	        // var url = ctx + "system/user/profile/edit/";
	        $.modal.open("修改用户", "/user/profile/edit");
	    }
	    /*用户管理-重置密码*/
	    function resetPwd() {
	        //var url = ctx + 'system/user/profile/resetPwd/' + userId;
	        $.modal.open("重置密码", "/profile/resetPwd/", '800', '500');
	    }
	    /*用户管理-头像*/
	    function avatar() {
	        // var url = ctx + 'system/user/profile/avatar/' + userId;
	        $.modal.open("修改头像", "/profile/avatar/");
	    }
	</script>
</body>
</html>
